<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <title>Laravel-简洁、优雅的PHP开发框架(PHP Web Framework)。- Laravel中文网（Laravel中国社区）</title>
    <meta name="description" content="Laravel是一套简洁、优雅的PHP Web开发框架(PHP Web Framework) -- Laravel中文网" />
    <meta name="keywords" content="Laravel中文社区,php框架,laravel中文网,php framework,restful routing,laravel,laravel php">


    <meta name="HandheldFriendly" content="True" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="http://cdn.bootcss.com/highlight.js/9.0.0/styles/vs.min.css">
    <link rel="stylesheet" type="text/css" href="/css/screen.css" />
    <% if (ENV_DEVELOPMENT) { %>
        <script src="http://localhost:35729/livereload.js"></script>
    <% } %>
    <script>
      var _hmt = _hmt || [];
    </script>

    <link rel="canonical" href="http://www.golaravel.com/" />
    <meta name="referrer" content="origin" />
    <link rel="next" href="http://www.golaravel.com/page/2/" />
    <script type="text/javascript" src="/shared/ghost-url.min.js?v=6d538c95e7"></script>
<script type="text/javascript">
ghost.init({
    clientId: "ghost-frontend",
    clientSecret: "26b0e31d612d"
});
</script>
    <meta name="generator" content="Ghost 0.7" />
    <link rel="alternate" type="application/rss+xml" title="Laravel-简洁、优雅的PHP开发框架(PHP Web Framework)。- Laravel中文网（Laravel中国社区）" href="http://www.golaravel.com/rss/" />
</head>
<body class="home-template">

     <!-- 头部导航开始 -->
    <%- include templates/_header.ejs %>
     <!-- 头部导航结束 -->

     <!-- 导航开始 -->
    <%- include templates/_top_nav.ejs %>
     <!-- 导航结束 -->

    <!-- start site's main content area -->
    <section class="content-wrap">
    <div class="container">
        <button class="btn btn-default" type="button" style="margin-bottom:20px;">
            <%= category.name %> 
            <span class="badge" style="margin-left:10px;"><%= posts.length %></span>
        </button>
        <div class="row">
            <main class="col-md-12 main-content">

                <% posts.forEach(function(post){ %>
                <article id="70" class="post">
                    <div class="post-head">
                        <h1 class="post-title"><a href="javaScript:;"><%= post.title %></a></h1>
                        <div class="post-meta">
                            <span class="author">作者：<a href="javaScript:;"><%= post.author.name %></a></span>
                            <time class="post-date">时间：<%= locals.moment(post.created).format('YYYY-MM-DD') %></time>
                            <span class="author">评论：<a href="javaScript:;"><%= post.comments.length %></a></span>
                            <span class="author">被赞：<a href="javaScript:;"><%= post.meta.favourates %></a></span>
                        </div>
                    </div>
                    <!-- 图片展示 -->
                    <!-- 
                    <div class="featured-media">
                        <a href="/post/laravel-5-3-is-now-released/"><img src="http://image.golaravel.com/9/a9/c367f99a8366ca86f7b889da25022.png" alt="Laravel 5.3 正式发布"></a>
                    </div> -->
                    <!-- 图片展示 -->
                    <div class="post-content">
                        <p><%= post.body %></p>
                    </div>
                    <div class="post-permalink">
                        <a href="/posts/<%= post.id%>" target="_blank" class="btn btn-default">阅读全文</a>
                    </div>
                    <footer class="post-footer clearfix">
                    <div class="pull-left tag-list">
                        <i class="fa fa-folder-open-o"></i>
                        <a href="/posts/category/<%= post.category.name %>"><%= post.category.name %></a>
                    </div>
                    <div class="pull-right share">
                    </div>
                    </footer>
                </article>
                <% }) %>
                <nav class="pagination" role="navigation">
                    <span class="page-number">第 1 页 &frasl; 共 5 页</span>
                    <a class="older-posts" href="/page/2/"><i class="fa fa-angle-right"></i></a>
                </nav>
            </main>
        </div>
    </div>
    </section>

     <!-- 页脚开始 -->
    <%- include templates/_footer.ejs %>
     <!-- 页脚结束 -->

    <a href="#" id="back-to-top"><i class="fa fa-angle-up"></i></a>

    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="http://cdn.bootcss.com/fitvids/1.1.0/jquery.fitvids.min.js"></script>
    <script src="http://cdn.bootcss.com/highlight.js/9.0.0/highlight.min.js"></script>
    <script src="/js/main.js"></script>


    <script> 
    $(document).ready(function(){ 
        var qqgroup = 'QQ群：462694081'; 
        $('.qq-group').text(qqgroup); 
    }); 
</body>
</html>
